# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname="py3-jsonrpc-server"
pkgver="0.3.4"
pkgrel=0
pkgdesc="A asynchronous JSON RPC server"
url="https://github.com/palantir/python-jsonrpc-server"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest py3-mock"
makedepends="py3-setuptools python3-dev py3-wheel"
source="https://github.com/palantir/python-jsonrpc-server/archive/$pkgver/python-jsonrpc-server-$pkgver.tar.gz"
builddir="$srcdir/python-jsonrpc-server-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="bc19d6d5bab927d5c5e1b1b9cd8dfd46f479c95b7ed05596cd0e0033731699c8b0dc0f7df61608c1e829225470b49e2eadc222db7171d9ae3c2fea11d75de6ec  python-jsonrpc-server-0.3.4.tar.gz"
